Page({

  /**
   * 页面的初始数据
   */
  data: {
    name:"李四",
    patientslist: [
      {
        name: "李四",
        sex: "男",
        date: "2020-09-16 9:30",
        itemno: 3234224242425656,
        phone: 111398763524,
        symptoms: "发烧",
      },
      {
        name: "李四",
        sex: "男",
        date: "2020-09-15 9:30",
        itemno: 3234224242425656,
        phone: 111398763524,
        symptoms: "发烧",
      },
      {
        name: "李四",
        sex: "男",
        date: "2020-09-14 9:30",
        itemno: 3234224242425656,
        phone: 111398763524,
        symptoms: "发烧",
      },
      {
        name: "李四",
        sex: "男",
        date: "2020-09-13 9:30",
        itemno: 3234224242425656,
        phone: 111398763524,
        symptoms: "发烧",
      },
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    console.log(options)
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    var that = this
    console.log(that.data.name)
    wx.setNavigationBarTitle({
      title: that.data.name
    })
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  //跳转到诊断单详情页
  todiagnosisdetailpage: function () {
    wx.navigateTo({
      url: '../../doctor/account/mydiagnosis/mydiagnosis',
    })
  },
})